/*
 *  Copyright 2010 Alexey Frishman (alexey.frishman@gmail.com)
 *  
 *  Licensed under the Apache License, Version 2.0 (the "License"); you may not
 *  use this file except in compliance with the License. You may obtain a copy of
 *  the License at
 *  
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 *  License for the specific language governing permissions and limitations under
 *  the License.
 * 
 */

package org.json4g;

import java.util.List;
import java.util.Map;

import javax.xml.bind.annotation.XmlElement;

import com.gwtent.reflection.client.Reflectable;

@Reflectable
public class Dependency {
    @XmlElement
    private Integer id;

    @XmlElement(name="bar")
    private Boolean foo;

    @XmlElement(type = String.class)
    private List<String> stringList;

    @XmlElement(type = String.class)
    private Map<String, String> stringMap;

    public Dependency() {
    }

    public Dependency(Integer id, Boolean foo, List<String> stringList, Map<String, String> stringMap) {
        this.id = id;
        this.foo = foo;
        this.stringList = stringList;
        this.stringMap = stringMap;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Boolean getFoo() {
        return foo;
    }

    public void setFoo(Boolean foo) {
        this.foo = foo;
    }

    public List<String> getStringList() {
        return stringList;
    }

    public void setStringList(List<String> stringList) {
        this.stringList = stringList;
    }

    public Map<String, String> getStringMap() {
        return stringMap;
    }

    public void setStringMap(Map<String, String> stringMap) {
        this.stringMap = stringMap;
    }

    @Override
    public String toString() {
        return "Dependency [foo=" + foo + ", id=" + id + ", stringList=" + stringList + ", stringMap=" + stringMap + "]";
    }

}